<!-- 字典管理 -->
<template>
  <div class="page-box h100 display-flex czbj">
    <p class="title-label">字典管理</p>

    <div class="mt10 pt10 btm">
      <dxtable
        :dataJson="dataJson"
        :portUrl="portUrl"
        :formJson="formJson"
        :qx="qx"
      ></dxtable>
    </div>
  </div>
</template>
 <script lang='ts' setup>
import { leixing } from "../../../util/config";
import dxtable from "../../../components/util/dxtable.vue";
import { dxget } from "../../../util/index";
import { h, ref, reactive } from "vue";
let qxList = ref([]);
let dataJson = reactive([
  {
    title: "id",
    key: "id",
    width: 60,
  },
  {
    title: "名称",
    key: "name",
    width: "200",
    search: true, // 是否在搜索栏展示
  },
  {
    title: "内容",
    key: "dlabel",
  },
  {
    title: "创建时间",
    width: "200",
    key: "addTime",
  },
]);
const qx = {
  DeletePermissionID: "kxdictionaryManagementdel", //删除
  EditPermissionIdentifier: "kxdictionaryManagementbj", // 编辑
  NewPermissionIdentifier: "kxdictionaryManagementxz", // 新建
  ViewPermissionID: "kxdictionaryManagementck", // 查看
};
// const portUrl = "dxgjAdmin/administrator?CharacterNameCode=" + leixing;
const portUrl = "beRelieved/dictionaries?type=2";
let formJson = reactive([
  {
    title: "名称",
    type: "input",
    key: "name",
    required: true, // 是否为必填
  },
  {
    title: "标签",
    type: "Tags",
    key: "dlabel",
    val: [],
    required: true, // 是否为必填
  },
  {
    key: "type",
    val: 2,
  },
]);

// const jjnbse =  ()=>{
//   window.socket.emit('parameterUploadProgress');
// }

// window.socket.on("jindu", function (data) {
//   console.log(data);
// })
</script>
 <style scoped>
</style>